<case value="selects">
	  
	      <!--
        如果选项的值是自定义数组(必须定义key为title的元素)需要解析，如果选项的值是常规字符串直接显示
        此处主要是用来给option定义更多的属性，比如data-ia=1，那么option应为
        $option = array('title' => 标题, 'data-id' => 1);
    -->
 
		 <script type="text/javascript" src="__PUBLIC__/js/region.js"></script>
	   
	    <php>
	    	$province=M("region")->where("pid=1")->select();
	    </php>
	 <select name="province" id="province" class="form-control select" style="width: 300px;float: left;" onchange="loadRegion('province',2,'city','{:U('Admin/Ajax/getRegion')}');" >
        <option value="0" selected>省份/直辖市</option>
        <php>foreach($province as $val){
        	 if($form['value']==$val['id']){
                 echo '<option selected value="'.$val['id'].'" > '.$val['name'].'</option>';
                 }
                 else{
                  echo '<option value="'.$val['id'].'" > '.$val['name'].'</option>';
                 }
        }
        
        </php>
        
       
     </select>
    <php>
    
    </php>          
     <select name="city" style="width: 300px;" id="city" class="form-control select">
       <option value="0">市/县</option>
     </select>  
   
</case>




 